import { PI, add, Calculator } from './math.js';

console.log(PI); // 3.14159
console.log(add(5, 3)); // 8

const calc = new Calculator();
console.log(calc.multiply(4, 5)); // 20
import { PI as mathPI } from './math.js';
console.log(mathPI); // 3.14159
import userProfile from './user.js';
import { userRole } from './user.js';

const user = userProfile();
console.log(user); // { name: "张三", id: 101 }
console.log(userRole); // "admin"
import * as MathUtils from './math.js';

console.log(MathUtils.PI); // 3.14159
console.log(MathUtils.add(10, 20)); // 30
